package cn.zust.ly.EyExample.Ey03;

import java.util.Scanner;

public class Main {
	public static void main(String[] args) {
		
		Scanner sc = new Scanner(System.in);
		//char a[][] = new char[30][30];
		int n = sc.nextInt();
		int m = sc.nextInt();
		
		for (int i = 0; i < n; i++) {
			for (int j = 0; j < m; j++) {
				//a[n][m] = getChar(i + j);
				System.out.print(getChar(Math.abs(i - j)));
			}
			System.out.println();
		}
		
	}
	static char getChar(int i) {
		return (char) (65 + i%27);
	}
}
